class School < ActiveRecord::Base
  belongs_to :area
  belongs_to :user
  belongs_to :province, :class_name => "Area", :foreign_key => "province_id"
  
  def editable_by?(user)
    user && (user.id == user_id || user.admin)
  end

end
